
<template>
  <!-- 业主管理 -->
  <div v-show="!showListPage" class="height100">
    <List></List>
  </div>

  <div v-show="showListPage" class="height100">
    <router-view> </router-view>
  </div>
</template>

<script>
import List from "./List/index.vue";
import { computed } from "vue";
import { useRoute } from "vue-router";
export default {
  name: "OwnerManagement",
  components: {
    List,
  },
  setup() {
    const route = useRoute();
    const showListPage = computed(() => {
      const { meta } = route;
      if (meta.Subpage) {
        return meta.Subpage;
      }
      return false;
    });
    return {
      showListPage,
    };
  },
};
</script>

<style lang="scss" scoped>
</style>
